package com.ktgj.sms.api;

import com.ktgj.sms.api.domain.Sms;
import org.springframework.cloud.openfeign.FeignClient;
import com.ktgj.common.core.constant.ServiceNameConstants;
import com.ktgj.sms.api.factory.RemoteSmsFallbackFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 短信服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "RemoteSmsService", value = ServiceNameConstants.SMS_SERVICE, fallbackFactory = RemoteSmsFallbackFactory.class)
public interface RemoteSmsService
{
    @PostMapping("/sms/addSms")
    public boolean addSms(@RequestBody Sms sms);

    @PostMapping("/sms/sendSmsMessage")
    public boolean sendSmsMessage(@RequestBody Sms sms);
}
